package com.yunwaikeji.gy_tool_library.widget.recycler.image;

import android.widget.ImageView;

import com.yunwaikeji.gy_tool_library.info.GYImageRecyclerInfo;
import com.yunwaikeji.gy_tool_library.model.GYBaseModel;
import com.yunwaikeji.gy_tool_library.utils.http.upload.GYUploadModel;

public class GYImageRecyclerModel extends GYBaseModel implements GYImageRecyclerInfo {
    private String loadPath;//加载路径
    private String localPath;//本地路径
    private State state = State.NORMAL;//状态
    private boolean toUpload;//是否需要上传
    private String url;//上传成功后的地址
    private GYUploadModel<?> uploadModel;//上传信息
    private Boolean edit;//是否可以编辑
    private PathType pathType;//类型
    private ImageView.ScaleType scaleType;

    public String getLoadPath() {
        return loadPath;
    }

    public GYImageRecyclerModel setLoadPath(String loadPath) {
        this.loadPath = loadPath;
        return this;
    }

    public String getLocalPath() {
        return localPath;
    }

    public GYImageRecyclerModel setLocalPath(String localPath) {
        this.localPath = localPath;
        return this;
    }

    public Boolean getEdit() {
        return edit;
    }

    public Boolean isEdit() {
        return edit;
    }

    public GYImageRecyclerModel setEdit(Boolean edit) {
        this.edit = edit;
        return this;
    }

    public PathType getPathType() {
        return pathType;
    }

    public GYImageRecyclerModel setPathType(PathType pathType) {
        this.pathType = pathType;
        return this;
    }

    public ImageView.ScaleType getScaleType() {
        return scaleType;
    }

    public GYImageRecyclerModel setScaleType(ImageView.ScaleType scaleType) {
        this.scaleType = scaleType;
        return this;
    }

    public State getState() {
        return state;
    }

    public GYImageRecyclerModel setState(State state) {
        this.state = state;
        return this;
    }

    public boolean isToUpload() {
        return toUpload;
    }

    public GYImageRecyclerModel setToUpload(boolean toUpload) {
        this.toUpload = toUpload;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public GYImageRecyclerModel setUrl(String url) {
        this.url = url;
        return this;
    }

    public GYUploadModel<?> getUploadModel() {
        return uploadModel;
    }

    public GYImageRecyclerModel setUploadModel(GYUploadModel<?> uploadModel) {
        this.uploadModel = uploadModel;
        return this;
    }
}
